import http from '@/utils/http'
import {
  LoginAuthCodeType,
  LoginResponseType,
  LoginType
} from '@/type/loginType'
import {RegisterType} from '@/type/registerType'
import { UpdatePasswordType } from '@/type/layoutType'

// 验证码获取
export const userAuthcode = () => http.get<LoginAuthCodeType>('system/user/authcode')
// 登录接口
export const userLogin = (data: LoginType) => http.post<LoginResponseType>('system/user/login', data)
// 注册接口
export const userRegister = (data: RegisterType) => http.post('system/user/register', data)
// 修改密码接口
export const userUpdatePassword = (data:UpdatePasswordType) => http.post('system/user/updatePassword', data)

